#include"tcp_server.hpp"


void Usage(char*s)
{
  std::cout<<"Usage"<<"\n\t"<<s<<" port"<<std::endl;
}
int main(int argv,char* argc[])
{
  if(argv!=2)
  {
    Usage(argc[0]);
    exit(-1);
  }
  TServer::TcpServer* desc=new TServer::TcpServer(argc[1]);
  desc->Init();
  desc->Loop();
  
  return 0;
}
